package org.jeecg.modules.rencai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.rencai.bo.NameValueBO;
import org.jeecg.modules.rencai.entity.EduInfo;
import org.jeecg.modules.rencai.mapper.EduInfoMapper;
import org.jeecg.modules.rencai.service.IEduInfoService;
import org.jeecg.modules.rencai.vo.FullInfoVO;
import org.jeecg.modules.rencai.vo.ProfessionVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 学校详情
 * @Author: jeecg-boot
 * @Date: 2020-04-03
 * @Version: V1.0
 */
@Service
public class EduInfoServiceImpl extends ServiceImpl<EduInfoMapper, EduInfo> implements IEduInfoService {
    @Override
    public List<String> queryDistinctProfession(String type, String province, String city,String mainType,  String twoyy, String ninebw) {
        return baseMapper.queryDistinctProfession(type, province, city,mainType,twoyy,ninebw);
    }
    @Override
    public List<String> queryDistinctProfession(String type, String province, String city,String mainType) {
        return baseMapper.queryDistinctProfession(type, province, city,mainType,null,null);
    }
    @Override
    public List<FullInfoVO> queryFullInfoByProfession(String type, String schoolNature, List<String> professions,String mainType) {
        return baseMapper.queryFullInfoByProfession(type, schoolNature, professions,mainType);
    }

    @Override
    public List<FullInfoVO> queryFullInfoByProfession(ProfessionVO vo) {
        return baseMapper.queryBackStageFullInfoByProfession(vo);
    }

    @Override
    public List<String> queryCityList(String type,String mainType) {
        return baseMapper.queryCityList(type,mainType);
    }

    @Override
    public List<NameValueBO> countByProfession(String type, List<String> profession, String twoyy, String ninebw,String mainType) {
        return baseMapper.countByProfession(type, profession, twoyy, ninebw,mainType);
    }

    @Override
    public List<NameValueBO> countCityByProfession(String province, String type, List<String> professions,String mainType) {
        return baseMapper.countCityByProfession(province, type, professions,mainType);
    }

    @Override
    public Integer countBySearch(String type, List<String> profession, String twoyy, String ninebw, String mainType, String province) {
        return baseMapper.countBySearch(type,profession,twoyy,ninebw,mainType,province);
    }
}
